package com.cz.zslu.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.cz.zslu.entity.ZslBrowseHistory;
import com.cz.zslu.entity.ZslOrderEvaluate;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * <p>
 * 订单评价管理 Mapper 接口
 * </p>
 */
public interface ZslOrderEvaluateMapper extends BaseMapper<ZslOrderEvaluate> {
    @Select("select avg(grade) from zsl_order_commodty where commodity_id=#{commodityId}")
    Double gradeAvg(@Param("commodityId") Long commodityId);
}
